package com.example.demo;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/user")
public class ParamController {
    @RequestMapping("/p1")
    public String p1(String name){
        return "接受到参数，name="+name;
    }
    @RequestMapping("/p2")
    public String p2(Integer age){
        return "age="+age;
    }

}
